package com.xmlt.core.template.tags;

import java.util.ArrayList;
import java.util.List;

import com.xmlt.core.template.instance.AbstractInstance;



public class TextTag extends TemplateSectionElement {
	private String text;
	public TextTag(String s) {
		text = s;
	}
	
	public String getText() {
		return text;
	}

	public String toString() {
		return "text tag (" + text + ")";
	}

	@Override
	public List<TemplateSectionElement> generateTags(AbstractInstance instance) {
		List<TemplateSectionElement> l = new ArrayList<TemplateSectionElement>();
		l.add(this);
		return l;
	}

}
